function display_com(addContent){
    let traget=document.getElementById(addContent);
    let leftContent = document.querySelectorAll(".rigContent")
    for (let i = 0; i < leftContent.length; i++) {
        leftContent[i].style.display = 'none';

    }
    if(traget.style.display=="none"){
        traget.style.display="";
    }else{
        traget.style.display="none";
    }

}
//点击左侧导航栏 只改变右侧内容
function showContent(e,d) {
    let s = document.querySelectorAll("."+d);
    let rightCon = document.querySelectorAll(".rigContent");
    let addComCase = document.getElementById("addContent-Com");
    addComCase.style['display'] = 'none';
    console.log(rightCon)
    for (let j = 0;j<rightCon.length;j++){
        rightCon[j].style.display = 'none';
    }
    for(let i =0; i<s.length;i++){
        if (Number(e)-1 == i){
            s[i].style.display = "block";
        }else{
            s[i].style.display = "none";
        }
    }

    
}




//鼠标移开内容消失
function leave() {
    let l = document.getElementById("addContent");
    l.style['display'] = 'none';

}
//点击删除子案例
function remove_One() {
    let r=confirm("确定删除吗？")
    if (r==true)
    {
        let removeOnes = document.getElementById('remove_One')
        removeOnes.style.display = 'none';
    }
}

//点击编辑显示编辑框+提交按钮+重置按钮

function editOne() {
    let ediOO = document.getElementById('editOO');
    let itemOne = document.getElementById('itemOne');
    itemOne.style.display = 'none';
}